// by Xeno

private ["_m_name","_aa_pod"];

_aa_pod = player getVariable "aa_pod";
if (isNil "_aa_pod") exitWith {};
if (vehicle player == _aa_pod) exitWith {"You have to get out of the AA Pod before you can remove it." call XfGlobalChat};

player playMove "AinvPknlMstpSlayWrflDnon_medic";
sleep 3;
waitUntil {animationState player != "AinvPknlMstpSlayWrflDnon_medic"};
if (!alive player) exitWith {"You died before you could remove your AA Pod." call XfGlobalChat};

deleteVehicle _aa_pod;
player SetVariable  ["aa_pod", objNull];

"AA Pod removed." call XfGlobalChat;
player SetVariable  ["d_aapod_pos", []];
_m_name = format ["AA Pod %1", str(player)];
["d_p_o_r", [str(player),_m_name]] call XNetCallEvent;